﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Web.Security;

public partial class MMOProject : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Expires = 60;
        Response.ExpiresAbsolute = DateTime.Now - TimeSpan.FromHours(1) ;
        Response.AddHeader("pragma","no-cache");
        Response.AddHeader("cache-control","private");
        Response.CacheControl = "no-cache";

    }

    private void loginModal_LoggedIn(object sender, EventArgs e)
    {
        lbCloseModal_Click(sender, e);
    }

    void lbCloseModal_Click(object sender, EventArgs e)
    {

    }

    private void loginModal_LoginError(object sender, EventArgs e)
    {

    }
    protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
    {

    }

    internal void lbLogout_Click(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();
        FormsAuthentication.RedirectToLoginPage();

    }
     internal void lbLogin_Click(object sender, EventArgs e)
    {
        if (pnlLogin.Visible)
            pnlLogin.Visible = false;
        else
            pnlLogin.Visible = true;
    }
}
